<?php	

class tutorials extends Controller
{
	
	public function comment()
	{	
		$this->session();
		$model = new commenttutorial();
		$date = gmdate ( 'YmdHis' );
		$comment = $model->insertComment($_POST['tutorialId'],$_SESSION['stud_no'], $date, $_POST['comment'] ); 
		$message = 'Your message has been posted.
		Click <a href="/members/orgs/' . $_SESSION['orgname'] . '/tutorials/' . $_POST['tutorialId'] . '">here</a> to go back.' ;
		new View('emptyTemplate', 
		array( 'message' => $message )) ;	
	}

}

